from MNISTModel import create_model
import tensorflow as tf
from DataGenerator import *

if __name__ == '__main__':
    x_test, y_test = getTestData()
    restored_model = tf.keras.models.load_model(r'F:\python_code\tf2_practice_MNIST\resources\MNIST_model_slm\my_model.h5')

    loss, acc = restored_model.evaluate(x_test, y_test)
    print("Restored model, accuracy:{:5.2f}%".format(100 * acc))
